package common

const (
	ContentTypeApplicationJson = "application/json;charset=UTF-8"
)

const (
	AccessToken    = "access_token"
	Content        = "content"
	Message        = "message"
	Sha            = "sha"
	Branch         = "branch"
	URL            = "url"
	EncryptionType = "encryption_type"
	PushEvents     = "push_events"
	Password       = "password"
)
const (
	FullName  = "full_name"
	All       = "all"
	OrderAsc  = "asc"
	OrderDesc = "desc"
	Created   = "created"
	Updated   = "updated"
	Pushed    = "pushed"
)

const (
	GITEE_HOOK_NAME_PUSH = "push_hooks"
	GITEE_HOOK_NAME_PR   = "merge_request_hooks"
	GITEE_HOOK_NAME_NOTE = "note_hooks"
)

//触发事件
const (
	// EVENTS_TYPE_COMMENT 评论事件
	EVENTS_TYPE_COMMENT = "comment"
	// EVENTS_TYPE_PR pull request事件
	EVENTS_TYPE_PR = "pr"
	// EVENTS_TYPE_PUSH push事件
	EVENTS_TYPE_PUSH = "push"
	// EVENTS_TYPE_BUILD 手动运行事件
	EVENTS_TYPE_BUILD = "build"
	// EVENTS_TYPE_REBUILD 手动重新构建
	EVENTS_TYPE_REBUILD = "rebuild"
)

const (
	GITEE_EVENT                   = "X-Gitee-Event"
	GITEE_EVENT_PUSH              = "Push Hook"
	GITEE_EVENT_NOTE              = "Note Hook"
	GITEE_EVENT_PR                = "Merge Request Hook"
	GITEE_EVENT_PR_ACTION_OPEN    = "open"
	GITEE_EVENT_PR_ACTION_UPDATE  = "update"
	GITEE_EVENT_PR_ACTION_COMMENT = "comment"
)
